package com.wxzz.elearing.pay.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 余额明细
 * </p>
 *
 * @author
 * @since 2021-04-23
 */
@Data
@ApiModel(value = "UserTransaction对象", description = "余额明细")
public class UserTransaction extends BaseEntity {

    @ApiModelProperty(value = "金额")
    private BigDecimal money;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "用户id(平台端id为0 企业端为企业id 讲师端为讲师id)")
    private Long userId;

    @ApiModelProperty(value = "0-平台端 1-企业端 2-用户端 3-讲师端")
    private Integer userType;

    @ApiModelProperty(value = "变动类型")
    private String changeType;

    @ApiModelProperty(value = "变动状态")
    private String transactionStatus;

    @ApiModelProperty(value = "0-用户->平台 1-平台->用户 2-平台->平台")
    private Integer type;

    @ApiModelProperty(value = "业务备注")
    private String businessRemark;

    //@TableField(exist = false)
    @ApiModelProperty(value = "用户姓名")
    private String username;

}
